package pojo.result;

public enum ResponseCode {
    SUCCESS(200, "SUCCESS"),
    BAD_PARAMS(900, "参数错误"),
    SYSTEM_ERROR(909, "系统错误");

    private final int code;
    private final String message;

    ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
